package cn.ad.controller;

import cn.ad.model.ResultModel;
import cn.ad.service.AdFormatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 广告形式控制层
 * 
 * @author yujuan.zhang
 * @from 2016-06-15
 * @since V1.0
 *
 */
@RestController
@RequestMapping("adFormat")
public class AdFormatController {

	@Autowired
	private AdFormatService adFormatService;

	/**
	 * 广告形式下拉列表获取
	 */
	@GetMapping("list")
	public ResultModel getAdFormatList() {

		return new ResultModel(adFormatService.getAdFormatDropDownList());
	}
}
